<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>欢迎访问产品运营互动中心！</title>

<script src="<s:url value="/script/jquery_last.js"/>" type="text/javascript"></script>
<script src="<s:url value="/script/formValidator.js"/>" type="text/javascript" charset="UTF-8"></script>
<script src="<s:url value="/script/formValidatorRegex.js"/>" type="text/javascript" charset="UTF-8"></script>
<script language="javascript" src="<s:url value="/script/DateTimeMask.js"/>" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({autotip:true,onerror:function(msg){alert(msg)}});
	$("select[name='processConfig.referenceType.id']").formValidator({tipid:"referenceTypetip",onshow:"资料类型"}).inputValidator({onerror:"您还没有输入资料类型",empty:{leftempty:false,rightempty:false,emptyerror:"资料类型不能为空"}});
	$("input:text[name='processConfig.title']").formValidator({tipid:"titletip",onshow:"标题"}).inputValidator({min:1,onerror:"您还没有输入标题",empty:{leftempty:false,rightempty:false,emptyerror:"标题两边不能有空符号"}});
	$("textarea[name='processConfig.content']").formValidator({tipid:"contenttip",onshow:"内容"}).inputValidator({min:1,max:300,onerror:"您输入的描述长度不正确,请确认"});
	$("input:text[name='processConfig.keyword']").formValidator({tipid:"keywordtip",onshow:"关键字"}).inputValidator({min:1,onerror:"您还没有输入资料关键字",empty:{leftempty:false,rightempty:false,emptyerror:"关键字两边不能有空符号"}});
});
</script>


<link rel="stylesheet" href="<s:url value="/css/style_new.css"/>">
<link rel="stylesheet" href="<s:url value="/css/validator.css"/>">

<link href="<s:url value="/images/08_ccxxzx.css"/>" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<table width="980" border="0" cellspacing="0" cellpadding="0" align="center">
		<tr>
			<td>
			<table width="100%" border="0" cellpadding="0" cellspacing="0"
				background="<s:url value="/images/new/gxzl_index_2.gif"/>">
				<tr>
					<td width="20" height="32">&nbsp;</td>
					<td width="20"><img
						src="<s:url value="/images/new/dq_dot.gif"/>" width="15"
						height="12" /></td>
					<td>当前位置：流程配置</td>
					<!--td width="100">流程节点搜索</td>
					<td width="200"><input name="conds.name" type="text"
						style="width: 99%" value="${conds.name}" onFocus="this.value=''" /></td>
					<td width="100"><input type="submit" name="Submit" value="搜索" /></td-->
				</tr>
			</table>
			</td>
		</tr>
	
	<tr>
		<td background="<s:url value="/images/home_4a.gif"/>">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
			<tr>
		    <td  background="<s:url value="/images/home_4a.gif"/>"> 
		      <table width="100%" height="400" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
		        <tr>
		          <td width="240" valign="top" class="leftbg">
					<%@ include file="/commons/include/bpm_left.inc"%>  
				  </td>
		          <td valign="top">
						<s:form action="saveProcessConfig.action" namespace="/security" method="post" enctype="multipart/form-data" >
							<input type="hidden" name="processConfig.id"
								value="${processConfig.id}">
							<table width="98%" align="center" border="0" cellspacing="0" cellpadding="0">
								<br/>
								<tr>
									<td height="5">
										<table width="100%" border="0" cellspacing="0" cellpadding="0">
											<tr>
												<td width="5" height="5"><img src="<s:url value="/images/cphdzx_tab1.gif"/>" width="5" height="5" /></td>
												<td class="tdborderup"><img src="<s:url value="/images/spacer.gif"/>" width="1" height="1" /></td>
												<td width="5"><img src="<s:url value="/images/cphdzx_tab2.gif"/>" width="5" height="5" /></td>
											</tr>
										</table>
									</td>
								</tr>
								<tr>
									<td  class="tdborderleftright">
									<TABLE width="98%" cellSpacing=1 cellPadding=0 align="center">
										<TR height=30>
											<TD align=left width="10%"><input type="submit" IsShowProcessBar="True" name="Submit" value="保 存"> <input type="button"
												value="返 回" onClick="location.href='processConfig.action'">
											</TD>
										</TR>
									</table>
									<s:if test="#returnMsg==null">
									</s:if> <s:else>
										<TABLE width="98%" cellSpacing=1 cellPadding=0 align="center">
											<TR height=30>
												<TD align=left width="10%"><font color="red">${returnMsg}</font>
												</TD>
											</TR>
										</table>
									</s:else>
									<table width="98%" border="0" cellspacing="0" cellpadding="7"
										align="center" class=tablecolor2>
										<tr>
											<td width="23%" bgcolor="D6E3FA">
											<div align="right"><font color="red">*</font>流程名称：</div>
											</td>
											<td width="77%"><s:textfield name="processConfig.name" theme="css_xhtml" size="33"/></td>
										</tr>
										<tr>
											<td width="23%" bgcolor="D6E3FA">
											<div align="right">业务实体关联：</div>
											</td>
											<td width="77%"><s:textfield name="processConfig.refEntity" theme="css_xhtml" size="33"/></td>
										</tr>
								<tr>
									<td width="19%" bgcolor="D6E3FA">
									<div align="right">是否默认流程：</div>
									</td>
									<td width="81%">
										<select name="processConfig.isDefault" style="width:155px">
											<option value="1">是</option>
											<option value="0">否</option>
										</select>
									</td>
								</tr>

										<tr>
											<td width="23%" bgcolor="D6E3FA">
											<div align="right"><font color="red">*</font>流程URL：</div>
											</td>
											<td width="77%"><s:textfield name="processConfig.url" theme="css_xhtml" size="33"/></td>
										</tr>										
										<input type="hidden" name="processConfig.creator"
											value="${processConfig.creator}">
										<input type="hidden" name="processConfig.createTime"
											value="<s:date name="processConfig.createTime" format="yyyy-MM-dd HH:mm"/>">
										<input type="hidden" name="processConfig.begin"
											value="<s:date name="processConfig.begin" format="yyyy-MM-dd HH:mm"/>">
										<input type="hidden" name="processConfig.end"
											value="<s:date name="processConfig.end" format="yyyy-MM-dd HH:mm"/>">
									</table>
									</td>
								</tr>
								<tr>
									<td height="5">
										<table width="100%" border="0" cellspacing="0" cellpadding="0">
											<tr>
												<td width="5" height="5"><img src="<s:url value="/images/cphdzx_tab3.gif"/>" width="5" height="5" /></td>
												<td class="tdborderbottom"><img src="<s:url value="/images/spacer.gif"/>" width="1" height="1" /></td>
												<td width="5"><img src="<s:url value="/images/cphdzx_tab4.gif"/>" width="5" height="5" /></td>
											</tr>
										</table>
									</td>
								</tr>
							</table></td>
					</tr>
				</table>
				</s:form> 
</body>
</html>
<script>
if("${processConfig.isDefault}"==0){
	document.forms[0]["processConfig.isDefault"].options[1].selected=true;
}

</script>